<style>
    .create-color {
        color: green;
    }

    .overwrite-color {
        color: red;
    }

    .skip-color {
        color: blue;
    }
</style>
<form id="edit-form" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-body">
            {if isset($error)}
            <div class="alert alert-error-light">
                {$error}
            </div>
            {/if}
            {if $fileList}
            <div class="alert alert-warning-light" role="alert">选择文件才会生效</div>
            <div class="form-group">
                <table class="table table-striped" data-toggle="addondev-select-file">
                    <tr>
                        <th>文件</th>
                        <th>操作</th>
                        <th><input type="checkbox" data-id="all" /> </th>
                    </tr>
                    {volist name="fileList" id="vo"}
                    <tr>
                        <td><a href="javascript:;" data-toggle='addondev-code-view' data-action="code"
                                data-ids="{$row['id']}" data-file-id="{$vo->id}">{$vo->shortPath}</a> {if
                            $vo->operation
                            == 'overwrite' } <a class="label label-warning" data-toggle='addondev-code-view'
                                data-action="diff" data-ids="{$row['id']}" data-file-id="{$vo->id}">比较</a> {/if}
                        </td>
                        <td class="{$vo->operation}-color">{:__($vo->operation)}</td>
                        <td>{if $vo->operation != 'skip' } <input type="checkbox" data-id="file" name="row[file][]"
                                value="{$vo->id}" /> {/if}
                        </td>
                    </tr>
                    {/volist}
                </table>
            </div>
            {/if}
        </div>
    </div>
    <div class="form-group layer-footer">
        <div class="text-center">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>